package csel.controller.commands;

import csel.model.GameCommand;
import csel.view.GameViewport;

public class GVSwitchToEquipmentCommand implements GameCommand
{
	private GameViewport gameViewport;
	
	public GVSwitchToEquipmentCommand(GameViewport gameViewport)
	{
		this.gameViewport = gameViewport;
	}
	
	public void execute()
	{
		gameViewport.accept( new SwitchToEquipmentCommand() );
	}
	
	private class SwitchToEquipmentCommand implements GameCommand
	{
		public void execute()
		{
			gameViewport.setEquipmentMode();
		}
	}

}
